Skip to content
Snippets Groups Projects
Commit 8c5e4809 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

disable memory measurements on g++

parent cde29e16
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -2,3 +2,5 @@ the top of the pushdown store:
the top of the pushdown store is on the left meaning that transition function (r, xyz) \in (q, 0, abc) will pop symbol a first than symbol b and then symbol c, push symbol z then symbol y and finally symbol x. The typical representation is a vector of symbols so for the pop part forward iterators begin and end should be used and for the push part reversed iterators rbegin and rend should be used. This is very much similar to grammars where context free grammars generating a string or a sentential from a rules say A -> aBb| c product a^ncb^n. First b is pushed then B and finally a.
 
String parsers cannot process correctly text files with more than 4096 characters on a single line at least on some systems. There is a bug in unget and putback function on istream.
Measuring memory allocations with library compiled by g++ is not working. The overload of operator new does not work properly.
......@@ -2,6 +2,8 @@
* Author: Radovan Cerveny
*/
 
#ifdef __clang__
#include <cstdlib>
#include <new>
#include "../measurements/MeasurementNew.hpp"
......@@ -17,3 +19,5 @@ void operator delete( void * ptr ) noexcept {
void operator delete( void * ptr, std::size_t ) noexcept {
operator delete( ptr, true );
}
#endif
......@@ -85,6 +85,9 @@ void MeasurementsTest::testTimeMeasurements ( ) {
#endif
 
void __NO_OPTIMIZE_ATTRIBUTE__ MeasurementsTest::testMemoryMeasurements ( ) {
#ifndef __clang__
return
#endif
 
measurements::start ( "chunk1", measurements::Type::MAIN );
int * baz = new int[500];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment