Mercurial > hg > truffle
comparison src/share/vm/jvmci/jvmciEnv.cpp @ 21731:df9d2375512a
Track max live register value in reference map
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 20:24:05 -0700 |
parents | be896a1983c0 |
children |
comparison
equal
deleted
inserted
replaced
21730:b9f9b8af17ff | 21731:df9d2375512a |
---|---|
481 DebugInformationRecorder* debug_info, | 481 DebugInformationRecorder* debug_info, |
482 Dependencies* dependencies, | 482 Dependencies* dependencies, |
483 JVMCIEnv* env, | 483 JVMCIEnv* env, |
484 int compile_id, | 484 int compile_id, |
485 bool has_unsafe_access, | 485 bool has_unsafe_access, |
486 bool has_wide_vector, | |
486 Handle installed_code, | 487 Handle installed_code, |
487 Handle compiled_code, | 488 Handle compiled_code, |
488 Handle speculation_log) { | 489 Handle speculation_log) { |
489 JVMCI_EXCEPTION_CONTEXT; | 490 JVMCI_EXCEPTION_CONTEXT; |
490 NMethodSweeper::possibly_sweep(); | 491 NMethodSweeper::possibly_sweep(); |
544 MutexUnlocker locker(MethodCompileQueue_lock); | 545 MutexUnlocker locker(MethodCompileQueue_lock); |
545 CompileBroker::handle_full_code_cache(); | 546 CompileBroker::handle_full_code_cache(); |
546 } | 547 } |
547 } else { | 548 } else { |
548 nm->set_has_unsafe_access(has_unsafe_access); | 549 nm->set_has_unsafe_access(has_unsafe_access); |
549 #ifdef TARGET_ARCH_x86 | 550 nm->set_has_wide_vectors(has_wide_vector); |
550 // It might be preferable to set this only for methods which | |
551 // use vector instructions but we currently don't track this | |
552 // and it probably wouldn't make much difference. | |
553 nm->set_has_wide_vectors(MaxVectorSize > 16); | |
554 #endif | |
555 | 551 |
556 // Record successful registration. | 552 // Record successful registration. |
557 // (Put nm into the task handle *before* publishing to the Java heap.) | 553 // (Put nm into the task handle *before* publishing to the Java heap.) |
558 CompileTask* task = env == NULL ? NULL : env->task(); | 554 CompileTask* task = env == NULL ? NULL : env->task(); |
559 if (task != NULL) task->set_code(nm); | 555 if (task != NULL) task->set_code(nm); |