equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2017, 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. |
68 protected: |
68 protected: |
69 static intptr_t translate_klass(intptr_t k) { |
69 static intptr_t translate_klass(intptr_t k) { |
70 Klass* v = TypeEntries::valid_klass(k); |
70 Klass* v = TypeEntries::valid_klass(k); |
71 if (v != NULL) { |
71 if (v != NULL) { |
72 ciKlass* klass = CURRENT_ENV->get_klass(v); |
72 ciKlass* klass = CURRENT_ENV->get_klass(v); |
73 CURRENT_ENV->ensure_metadata_alive(klass); |
|
74 return with_status(klass, k); |
73 return with_status(klass, k); |
75 } |
74 } |
76 return with_status(NULL, k); |
75 return with_status(NULL, k); |
77 } |
76 } |
78 |
77 |