< prev index next >

src/hotspot/share/runtime/abstract_vm_version.hpp

Print this page

  1 /*
  2  * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  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
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *

173 
174   // Number of page sizes efficiently supported by the hardware.  Most chips now
175   // support two sizes, thus this default implementation.  Processor-specific
176   // subclasses should define new versions to hide this one as needed.  Note
177   // that the O/S may support more sizes, but at most this many are used.
178   static uint page_size_count() { return 2; }
179 
180   // Denominator for computing default ParallelGCThreads for machines with
181   // a large number of cores.
182   static uint parallel_worker_threads_denominator() { return 8; }
183 
184   // Does this CPU support spin wait instruction?
185   static bool supports_on_spin_wait() { return false; }
186 
187   // Does platform support fast class initialization checks for static methods?
188   static bool supports_fast_class_init_checks() { return false; }
189 
190   // Does platform support stack watermark barriers for concurrent stack processing?
191   constexpr static bool supports_stack_watermark_barrier() { return false; }
192 



193   static bool print_matching_lines_from_file(const char* filename, outputStream* st, const char* keywords_to_match[]);
194 };
195 
196 #endif // SHARE_RUNTIME_ABSTRACT_VM_VERSION_HPP

  1 /*
  2  * Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  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
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *

173 
174   // Number of page sizes efficiently supported by the hardware.  Most chips now
175   // support two sizes, thus this default implementation.  Processor-specific
176   // subclasses should define new versions to hide this one as needed.  Note
177   // that the O/S may support more sizes, but at most this many are used.
178   static uint page_size_count() { return 2; }
179 
180   // Denominator for computing default ParallelGCThreads for machines with
181   // a large number of cores.
182   static uint parallel_worker_threads_denominator() { return 8; }
183 
184   // Does this CPU support spin wait instruction?
185   static bool supports_on_spin_wait() { return false; }
186 
187   // Does platform support fast class initialization checks for static methods?
188   static bool supports_fast_class_init_checks() { return false; }
189 
190   // Does platform support stack watermark barriers for concurrent stack processing?
191   constexpr static bool supports_stack_watermark_barrier() { return false; }
192 
193   // Is recursive lightweight locking implemented for this platform?
194   constexpr static bool supports_recursive_lightweight_locking() { return false; }
195 
196   static bool print_matching_lines_from_file(const char* filename, outputStream* st, const char* keywords_to_match[]);
197 };
198 
199 #endif // SHARE_RUNTIME_ABSTRACT_VM_VERSION_HPP
< prev index next >