Mercurial > hg > truffle
annotate src/share/vm/c1/c1_MacroAssembler.hpp @ 1994:6cd6d394f280
7001033: assert(gch->gc_cause() == GCCause::_scavenge_alot || !gch->incremental_collection_failed())
7002546: regression on SpecJbb2005 on 7b118 comparing to 7b117 on small heaps
Summary: Relaxed assertion checking related to incremental_collection_failed flag to allow for ExplicitGCInvokesConcurrent behaviour where we do not want a failing scavenge to bail to a stop-world collection. Parameterized incremental_collection_will_fail() so we can selectively use, or not use, as appropriate, the statistical prediction at specific use sites. This essentially reverts the scavenge bail-out logic to what it was prior to some recent changes that had inadvertently started using the statistical prediction which can be noisy in the presence of bursty loads. Added some associated verbose non-product debugging messages.
Reviewed-by: johnc, tonyp
author | ysr |
---|---|
date | Tue, 07 Dec 2010 21:55:53 -0800 |
parents | f95d63e2154a |
children | b92c45f2bc75 |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1295
diff
changeset
|
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1295
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1295
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1295
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef SHARE_VM_C1_C1_MACROASSEMBLER_HPP |
26 #define SHARE_VM_C1_C1_MACROASSEMBLER_HPP | |
27 | |
28 #include "asm/assembler.hpp" | |
29 #ifdef TARGET_ARCH_x86 | |
30 # include "assembler_x86.inline.hpp" | |
31 #endif | |
32 #ifdef TARGET_ARCH_sparc | |
33 # include "assembler_sparc.inline.hpp" | |
34 #endif | |
35 #ifdef TARGET_ARCH_zero | |
36 # include "assembler_zero.inline.hpp" | |
37 #endif | |
38 | |
0 | 39 class CodeEmitInfo; |
40 | |
41 class C1_MacroAssembler: public MacroAssembler { | |
42 public: | |
43 // creation | |
44 C1_MacroAssembler(CodeBuffer* code) : MacroAssembler(code) { pd_init(); } | |
45 | |
46 //---------------------------------------------------- | |
47 void explicit_null_check(Register base); | |
48 | |
49 void inline_cache_check(Register receiver, Register iCache); | |
50 void build_frame(int frame_size_in_bytes); | |
1295 | 51 void remove_frame(int frame_size_in_bytes); |
0 | 52 |
53 void unverified_entry(Register receiver, Register ic_klass); | |
54 void verified_entry(); | |
55 void verify_stack_oop(int offset) PRODUCT_RETURN; | |
56 void verify_not_null_oop(Register r) PRODUCT_RETURN; | |
57 | |
1972 | 58 #ifdef TARGET_ARCH_x86 |
59 # include "c1_MacroAssembler_x86.hpp" | |
60 #endif | |
61 #ifdef TARGET_ARCH_sparc | |
62 # include "c1_MacroAssembler_sparc.hpp" | |
63 #endif | |
64 | |
0 | 65 }; |
66 | |
67 | |
68 | |
69 // A StubAssembler is a MacroAssembler w/ extra functionality for runtime | |
70 // stubs. Currently it 'knows' some stub info. Eventually, the information | |
71 // may be set automatically or can be asserted when using specialised | |
72 // StubAssembler functions. | |
73 | |
74 class StubAssembler: public C1_MacroAssembler { | |
75 private: | |
76 const char* _name; | |
77 bool _must_gc_arguments; | |
78 int _frame_size; | |
79 int _num_rt_args; | |
80 int _stub_id; | |
81 | |
82 public: | |
83 // creation | |
84 StubAssembler(CodeBuffer* code, const char * name, int stub_id); | |
85 void set_info(const char* name, bool must_gc_arguments); | |
86 | |
87 void set_frame_size(int size); | |
88 void set_num_rt_args(int args); | |
89 | |
90 // accessors | |
91 const char* name() const { return _name; } | |
92 bool must_gc_arguments() const { return _must_gc_arguments; } | |
93 int frame_size() const { return _frame_size; } | |
94 int num_rt_args() const { return _num_rt_args; } | |
95 int stub_id() const { return _stub_id; } | |
96 | |
97 // runtime calls (return offset of call to be used by GC map) | |
98 int call_RT(Register oop_result1, Register oop_result2, address entry, int args_size = 0); | |
99 int call_RT(Register oop_result1, Register oop_result2, address entry, Register arg1); | |
100 int call_RT(Register oop_result1, Register oop_result2, address entry, Register arg1, Register arg2); | |
101 int call_RT(Register oop_result1, Register oop_result2, address entry, Register arg1, Register arg2, Register arg3); | |
102 }; | |
1972 | 103 |
104 #endif // SHARE_VM_C1_C1_MACROASSEMBLER_HPP |