View | Details | Raw Unified | Return to bug 255904
Collapse All | Expand All

(-)b/java/openjdk15/files/patch-commit-c484d890428 (+23 lines)
Added Link Here
1
commit c484d8904285652246c3af212a4211b9a8955149
2
Author: Thomas Stuefe <stuefe@openjdk.org>
3
Date:   Tue Mar 16 05:49:01 2021 +0000
4
5
    8263557: Possible NULL dereference in Arena::destruct_contents()
6
    
7
    Reviewed-by: kbarrett, coleenp
8
9
diff --git src/hotspot/share/memory/arena.cpp src/hotspot/share/memory/arena.cpp
10
index 8388f68c359..16059bed9be 100644
11
--- src/hotspot/share/memory/arena.cpp
12
+++ src/hotspot/share/memory/arena.cpp
13
@@ -310,7 +310,9 @@ void Arena::destruct_contents() {
14
   // reset size before chop to avoid a rare racing condition
15
   // that can have total arena memory exceed total chunk memory
16
   set_size_in_bytes(0);
17
-  _first->chop();
18
+  if (_first != NULL) {
19
+    _first->chop();
20
+  }
21
   reset();
22
 }
23
 
(-)b/java/openjdk15/files/patch-commit-f8a9602a0a6 (+28 lines)
Added Link Here
1
commit f8a9602a0a65cdc98eb940aac9529256ded2bf42
2
Author: Yasumasa Suenaga <ysuenaga@openjdk.org>
3
Date:   Thu Jan 21 06:08:13 2021 +0000
4
5
    8260025: Missing comma in VM_Version_Ext::_family_id_amd
6
    
7
    Reviewed-by: dholmes, stuefe
8
9
diff --git src/hotspot/cpu/x86/vm_version_ext_x86.cpp src/hotspot/cpu/x86/vm_version_ext_x86.cpp
10
index 30d9494c654..a84b37f7977 100644
11
--- src/hotspot/cpu/x86/vm_version_ext_x86.cpp
12
+++ src/hotspot/cpu/x86/vm_version_ext_x86.cpp
13
@@ -1,5 +1,5 @@
14
 /*
15
- * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
16
+ * Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
17
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
18
  *
19
  * This code is free software; you can redistribute it and/or modify it
20
@@ -739,7 +739,7 @@ const char* const VM_Version_Ext::_family_id_amd[ExtendedFamilyIdLength_AMD] = {
21
   "",
22
   "",
23
   "Opteron/Athlon64",
24
-  "Opteron QC/Phenom"  // Barcelona et.al.
25
+  "Opteron QC/Phenom",  // Barcelona et.al.
26
   "",
27
   "",
28
   "",

Return to bug 255904