comparison src/share/vm/graal/graalEnv.cpp @ 3664:6e1abd79e7c8

Register assumptions before anything else. Don't free code blob (it is reused).
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 17 Nov 2011 19:11:55 +0100
parents d24f157f2ba8
children f198b24093f3
comparison
equal deleted inserted replaced
3663:8c46cdb684d4 3664:6e1abd79e7c8
464 } 464 }
465 465
466 // All buffers in the CodeBuffer are allocated in the CodeCache. 466 // All buffers in the CodeBuffer are allocated in the CodeCache.
467 // If the code buffer is created on each compile attempt 467 // If the code buffer is created on each compile attempt
468 // as in C2, then it must be freed. 468 // as in C2, then it must be freed.
469 code_buffer->free_blob(); 469 //code_buffer->free_blob();
470 return NULL; 470 return NULL;
471 } 471 }
472 472
473 assert(offsets->value(CodeOffsets::Deopt) != -1, "must have deopt entry"); 473 assert(offsets->value(CodeOffsets::Deopt) != -1, "must have deopt entry");
474 assert(offsets->value(CodeOffsets::Exceptions) != -1, "must have exception entry"); 474 assert(offsets->value(CodeOffsets::Exceptions) != -1, "must have exception entry");
482 frame_words, oop_map_set, 482 frame_words, oop_map_set,
483 handler_table, inc_table, 483 handler_table, inc_table,
484 compiler, comp_level); 484 compiler, comp_level);
485 485
486 // Free codeBlobs 486 // Free codeBlobs
487 code_buffer->free_blob(); 487 //code_buffer->free_blob();
488 488
489 // stress test 6243940 by immediately making the method 489 // stress test 6243940 by immediately making the method
490 // non-entrant behind the system's back. This has serious 490 // non-entrant behind the system's back. This has serious
491 // side effects on the code cache and is not meant for 491 // side effects on the code cache and is not meant for
492 // general stress testing 492 // general stress testing