mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8152358: code and comment cleanups found during the hunt for 8077392
Reviewed-by: gthornbr, kvn, cvarming
This commit is contained in:
parent
66570c722b
commit
2e87e3178c
8 changed files with 71 additions and 43 deletions
|
@ -2954,7 +2954,7 @@ JRT_LEAF(intptr_t*, SharedRuntime::OSR_migration_begin( JavaThread *thread) )
|
|||
Method* moop = fr.interpreter_frame_method();
|
||||
int max_locals = moop->max_locals();
|
||||
// Allocate temp buffer, 1 word per local & 2 per active monitor
|
||||
int buf_size_words = max_locals + active_monitor_count*2;
|
||||
int buf_size_words = max_locals + active_monitor_count * BasicObjectLock::size();
|
||||
intptr_t *buf = NEW_C_HEAP_ARRAY(intptr_t,buf_size_words, mtCode);
|
||||
|
||||
// Copy the locals. Order is preserved so that loading of longs works.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue