--- parser3/src/classes/op.C 2003/03/17 14:48:04 1.127.4.1 +++ parser3/src/classes/op.C 2003/04/04 09:59:56 1.128 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_OP_C="$Date: 2003/03/17 14:48:04 $"; +static const char* IDENT_OP_C="$Date: 2003/04/04 09:59:56 $"; #include "classes.h" #include "pa_common.h" @@ -136,7 +136,7 @@ static void _process(Request& r, const S strncpy(local_place, method_name.cstr(), MAX_STRING-1); place[MAX_STRING-1]=0; size_t place_size=strlen(local_place)+1; #endif - char *heap_place=(char *)r.malloc_atomic(place_size); + char *heap_place=(char *)r.malloc(place_size); memcpy(heap_place, local_place, place_size); // process source code, append processed methods to 'self' class @@ -402,9 +402,9 @@ static void locked_process_and_cache_put info.data->expires=0; // flag it so that could be easily checked by caller } const String *locked_process_and_cache_put(Request& r, - Value& body_code, - Cache_data& data, - const String& file_spec) { + Value& body_code, + Cache_data& data, + const String& file_spec) { Locked_process_and_cache_put_action_info info={ &r, &data, @@ -569,7 +569,7 @@ VHash& exception2vhash(Pool& pool, const } if(const char *ecomment=e.comment(true)) { int comment_size=strlen(ecomment); - char *pcomment=(char *)pool.malloc_atomic(comment_size); + char *pcomment=(char *)pool.malloc(comment_size); memcpy(pcomment, ecomment, comment_size); hash.put(*exception_comment_part_name, new(pool) VString(*new(pool) String(pool, pcomment, comment_size, true/*tainted*/))); @@ -647,10 +647,6 @@ static void _throw_operator(Request& r, throw Exception(type, &source, "%s", comment?comment:""); } } - -static void _gc_operator(Request& r, const String& method_name, MethodParams *params) { - r.pool().collect_garbage(); -} // constructor @@ -710,7 +706,6 @@ VClassMAIN::VClassMAIN(Pool& apool): VCl // ^throw[type;source;comment] add_native_method("throw", Method::CT_ANY, _throw_operator, 1, 3); - add_native_method("gc", Method::CT_ANY, _gc_operator, 0, 0); } // constructor & configurator