Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 7115:1c76a458616e
simplified TLAB allocation (don't use + and -)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 30 Nov 2012 12:08:38 +0100 |
parents | eec7173947a1 |
children | 1baf7f1e3f23 |
comparison
equal
deleted
inserted
replaced
7114:acfca8c77dd2 | 7115:1c76a458616e |
---|---|
47 | 47 |
48 ThreadToNativeFromVM trans(JavaThread::current()); | 48 ThreadToNativeFromVM trans(JavaThread::current()); |
49 JavaThread* THREAD = JavaThread::current(); | 49 JavaThread* THREAD = JavaThread::current(); |
50 TRACE_graal_1("GraalCompiler::initialize"); | 50 TRACE_graal_1("GraalCompiler::initialize"); |
51 | 51 |
52 unsigned long heap_end = (long) Universe::heap()->reserved_region().end(); | |
53 unsigned long allocation_end = heap_end + 16l * 1024 * 1024 * 1024; | |
54 guarantee(heap_end < allocation_end, "heap end too close to end of address space (might lead to erroneous TLAB allocations)"); | |
55 NOT_LP64(error("check TLAB allocation code for address space conflicts")); | |
56 | |
52 _deopted_leaf_graph_count = 0; | 57 _deopted_leaf_graph_count = 0; |
53 | 58 |
54 initialize_buffer_blob(); | 59 initialize_buffer_blob(); |
55 Runtime1::initialize(THREAD->get_buffer_blob()); | 60 Runtime1::initialize(THREAD->get_buffer_blob()); |
56 | 61 |