From 6ad262d0cb9a7cd30fb25fa85a93035da0c71267 Mon Sep 17 00:00:00 2001 From: "wangshaojun.jeffery" Date: Thu, 8 Oct 2026 16:24:34 +0800 Subject: [PATCH] [Test] Add missing copyright headers to CVM tests --- .../LegacyInterfaceMethodref.java | 18 +++++++++++++++++ .../ref/CleanerReferenceForwardingTest.java | 20 +++++++++++++++++++ .../lang/ref/ReferenceForwardingTest.java | 20 +++++++++++++++++++ .../nio/Buffer/DirectBufferCleanerTest.java | 20 +++++++++++++++++++ 4 files changed, 78 insertions(+) diff --git a/cvm/test/hotspot/runtime/linkResolver/LegacyInterfaceMethodref.java b/cvm/test/hotspot/runtime/linkResolver/LegacyInterfaceMethodref.java index bb9e00b721c..41cba75163a 100644 --- a/cvm/test/hotspot/runtime/linkResolver/LegacyInterfaceMethodref.java +++ b/cvm/test/hotspot/runtime/linkResolver/LegacyInterfaceMethodref.java @@ -1,3 +1,21 @@ +// This project is a modified version of OpenJDK, licensed under GPL v2. +// Modifications Copyright (C) 2026 ByteDance Inc. +/* + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + */ + /* * @test * @summary Verify CVM8 accepts the legacy Scala 2.11 Methodref encoding for an interface static method diff --git a/cvm/test/java/lang/ref/CleanerReferenceForwardingTest.java b/cvm/test/java/lang/ref/CleanerReferenceForwardingTest.java index 493d29840bc..633e41ab8e5 100644 --- a/cvm/test/java/lang/ref/CleanerReferenceForwardingTest.java +++ b/cvm/test/java/lang/ref/CleanerReferenceForwardingTest.java @@ -1,3 +1,23 @@ +// This project is a modified version of OpenJDK, licensed under GPL v2. +// Modifications Copyright (C) 2025 ByteDance Inc. +/* + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + */ + /* * @test * @summary Verify Cleaner dispatch does not break PhantomReference forwarding diff --git a/cvm/test/java/lang/ref/ReferenceForwardingTest.java b/cvm/test/java/lang/ref/ReferenceForwardingTest.java index 63950b1d8d7..e8b7dd6432f 100644 --- a/cvm/test/java/lang/ref/ReferenceForwardingTest.java +++ b/cvm/test/java/lang/ref/ReferenceForwardingTest.java @@ -1,3 +1,23 @@ +// This project is a modified version of OpenJDK, licensed under GPL v2. +// Modifications Copyright (C) 2025 ByteDance Inc. +/* + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + */ + /* * @test * @summary Verify that a mixed pending list forwards final and phantom references diff --git a/cvm/test/java/nio/Buffer/DirectBufferCleanerTest.java b/cvm/test/java/nio/Buffer/DirectBufferCleanerTest.java index e2ca6b9bc97..03e93a9faa4 100644 --- a/cvm/test/java/nio/Buffer/DirectBufferCleanerTest.java +++ b/cvm/test/java/nio/Buffer/DirectBufferCleanerTest.java @@ -1,3 +1,23 @@ +// This project is a modified version of OpenJDK, licensed under GPL v2. +// Modifications Copyright (C) 2025 ByteDance Inc. +/* + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + */ + /* * @test * @summary Verify DirectByteBuffer Cleaners release native memory and forward phantom references