equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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. |
71 }; |
71 }; |
72 |
72 |
73 enum SafepointTimeoutReason { |
73 enum SafepointTimeoutReason { |
74 _spinning_timeout = 0, |
74 _spinning_timeout = 0, |
75 _blocking_timeout = 1 |
75 _blocking_timeout = 1 |
|
76 }; |
|
77 |
|
78 // The enums are listed in the order of the tasks when done serially. |
|
79 enum SafepointCleanupTasks { |
|
80 SAFEPOINT_CLEANUP_DEFLATE_MONITORS, |
|
81 SAFEPOINT_CLEANUP_UPDATE_INLINE_CACHES, |
|
82 SAFEPOINT_CLEANUP_COMPILATION_POLICY, |
|
83 SAFEPOINT_CLEANUP_SYMBOL_TABLE_REHASH, |
|
84 SAFEPOINT_CLEANUP_STRING_TABLE_REHASH, |
|
85 SAFEPOINT_CLEANUP_CLD_PURGE, |
|
86 // Leave this one last. |
|
87 SAFEPOINT_CLEANUP_NUM_TASKS |
76 }; |
88 }; |
77 |
89 |
78 typedef struct { |
90 typedef struct { |
79 float _time_stamp; // record when the current safepoint occurs in seconds |
91 float _time_stamp; // record when the current safepoint occurs in seconds |
80 int _vmop_type; // type of VM operation triggers the safepoint |
92 int _vmop_type; // type of VM operation triggers the safepoint |