Mercurial > hg > graal-compiler
annotate src/share/vm/trace/traceMacros.hpp @ 10185:d50cc62e94ff
8012715: G1: GraphKit accesses PtrQueue::_index as int but is size_t
Summary: In graphKit INT operations were generated to access PtrQueue::_index which has type size_t. This is 64 bit on 64-bit machines. No problems occur on little endian machines as long as the index fits into 32 bit, but on big endian machines the upper part is read, which is zero. This leads to unnecessary branches to the slow path in the runtime.
Reviewed-by: twisti, johnc
Contributed-by: Martin Doerr <martin.doerr@sap.com>
author | johnc |
---|---|
date | Wed, 24 Apr 2013 14:48:43 -0700 |
parents | 0105f367a14c |
children | f2110083203d |
rev | line source |
---|---|
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
1 /* |
6006
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
4 * |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
8 * |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
13 * accompanied this code). |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
14 * |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
18 * |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
21 * questions. |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
22 * |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
23 */ |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
24 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
25 #ifndef SHARE_VM_TRACE_TRACE_MACRO_HPP |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
26 #define SHARE_VM_TRACE_TRACE_MACRO_HPP |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
27 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
28 #define EVENT_BEGIN(type, name) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
29 #define EVENT_SET(name, field, value) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
30 #define EVENT_COMMIT(name, ...) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
31 #define EVENT_STARTED(name, time) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
32 #define EVENT_ENDED(name, time) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
33 #define EVENT_THREAD_EXIT(thread) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
34 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
35 #define TRACE_ENABLED 0 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
36 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
37 #define TRACE_INIT_ID(k) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
38 #define TRACE_BUFFER void* |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
39 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
40 #define TRACE_START() true |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
41 #define TRACE_INITIALIZE() 0 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
42 |
4860
34e2e90e7182
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
4800
diff
changeset
|
43 #define TRACE_SET_KLASS_TRACE_ID(x1, x2) do { } while (0) |
34e2e90e7182
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
4800
diff
changeset
|
44 #define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1 |
34e2e90e7182
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
4800
diff
changeset
|
45 #define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2 |
6006
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
46 #define TRACE_DEFINE_OFFSET typedef int ___IGNORED_hs_trace_type3 |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
47 #define TRACE_ID_OFFSET in_ByteSize(0); ShouldNotReachHere() |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
48 #define TRACE_TEMPLATES(template) |
0105f367a14c
7160570: Intrinsification support for tracing framework
rbackman
parents:
4860
diff
changeset
|
49 #define TRACE_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias) |
4860
34e2e90e7182
7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp
rbackman
parents:
4800
diff
changeset
|
50 |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
diff
changeset
|
51 #endif |