Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/relocInfo_x86.cpp @ 12056:740e263c80c6
8003424: Enable Class Data Sharing for CompressedOops
8016729: ObjectAlignmentInBytes=16 now forces the use of heap based compressed oops
8005933: The -Xshare:auto option is ignored for -server
Summary: Move klass metaspace above the heap and support CDS with compressed klass ptrs.
Reviewed-by: coleenp, kvn, mgerdin, tschatzl, stefank
author | hseigel |
---|---|
date | Thu, 15 Aug 2013 20:04:10 -0400 |
parents | 7875ea94bea5 |
children | 8085ce95b6f5 |
comparison
equal
deleted
inserted
replaced
12055:d96f52012aaa | 12056:740e263c80c6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 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 | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
53 } else { | 53 } else { |
54 *(int32_t*) disp = oopDesc::encode_heap_oop((oop)x); | 54 *(int32_t*) disp = oopDesc::encode_heap_oop((oop)x); |
55 } | 55 } |
56 } else { | 56 } else { |
57 if (verify_only) { | 57 if (verify_only) { |
58 assert(*(uint32_t*) disp == oopDesc::encode_klass((Klass*)x), "instructions must match"); | 58 assert(*(uint32_t*) disp == Klass::encode_klass((Klass*)x), "instructions must match"); |
59 } else { | 59 } else { |
60 *(int32_t*) disp = oopDesc::encode_klass((Klass*)x); | 60 *(int32_t*) disp = Klass::encode_klass((Klass*)x); |
61 } | 61 } |
62 } | 62 } |
63 } else { | 63 } else { |
64 // Note: Use runtime_call_type relocations for call32_operand. | 64 // Note: Use runtime_call_type relocations for call32_operand. |
65 address ip = addr(); | 65 address ip = addr(); |