--- old/src/hotspot/share/classfile/modules.hpp 2020-08-31 08:09:15.347467194 -0700 +++ new/src/hotspot/share/classfile/modules.hpp 2020-08-31 08:09:15.127458913 -0700 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. +* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,6 +32,7 @@ class Symbol; class Modules : AllStatic { + static void check_cds_restrictions(TRAPS) NOT_CDS_JAVA_HEAP_RETURN; public: // define_module defines a module containing the specified packages. It binds the @@ -52,6 +53,9 @@ static void define_module(jobject module, jboolean is_open, jstring version, jstring location, jobjectArray packages, TRAPS); + static void define_archived_modules(jobject platform_loader, jobject system_loader, + TRAPS) NOT_CDS_JAVA_HEAP_RETURN; + // Provides the java.lang.Module for the unnamed module defined // to the boot loader. //