Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/deoptimization.hpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | d2a62e0f25eb |
children | e522a00b91aa 63a4eb8bcd23 b8413a9cbb84 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, 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. |
330 // Preserves incoming arguments to the popped frame when it is | 330 // Preserves incoming arguments to the popped frame when it is |
331 // returning to a deoptimized caller | 331 // returning to a deoptimized caller |
332 static void popframe_preserve_args(JavaThread* thread, int bytes_to_save, void* start_address); | 332 static void popframe_preserve_args(JavaThread* thread, int bytes_to_save, void* start_address); |
333 | 333 |
334 private: | 334 private: |
335 static methodDataOop get_method_data(JavaThread* thread, methodHandle m, bool create_if_missing); | 335 static MethodData* get_method_data(JavaThread* thread, methodHandle m, bool create_if_missing); |
336 // Update the mdo's count and per-BCI reason bits, returning previous state: | 336 // Update the mdo's count and per-BCI reason bits, returning previous state: |
337 static ProfileData* query_update_method_data(methodDataHandle trap_mdo, | 337 static ProfileData* query_update_method_data(MethodData* trap_mdo, |
338 int trap_bci, | 338 int trap_bci, |
339 DeoptReason reason, | 339 DeoptReason reason, |
340 //outputs: | 340 //outputs: |
341 uint& ret_this_trap_count, | 341 uint& ret_this_trap_count, |
342 bool& ret_maybe_prior_trap, | 342 bool& ret_maybe_prior_trap, |
353 | 353 |
354 static juint _deoptimization_hist[Reason_LIMIT][1+Action_LIMIT][BC_CASE_LIMIT]; | 354 static juint _deoptimization_hist[Reason_LIMIT][1+Action_LIMIT][BC_CASE_LIMIT]; |
355 // Note: Histogram array size is 1-2 Kb. | 355 // Note: Histogram array size is 1-2 Kb. |
356 | 356 |
357 public: | 357 public: |
358 static void update_method_data_from_interpreter(methodDataHandle trap_mdo, int trap_bci, int reason); | 358 static void update_method_data_from_interpreter(MethodData* trap_mdo, int trap_bci, int reason); |
359 }; | 359 }; |
360 | 360 |
361 class DeoptimizationMarker : StackObj { // for profiling | 361 class DeoptimizationMarker : StackObj { // for profiling |
362 static bool _is_active; | 362 static bool _is_active; |
363 public: | 363 public: |