From ffefd59c7bdb017624a3b9e4394559eb9be7a69e Mon Sep 17 00:00:00 2001 From: crash888 Date: Thu, 11 May 2023 20:36:04 +0800 Subject: [PATCH] #I72F6P:fix asyncgclog loss and crash --- Fix-the-crash-that-occurs-when-the-process-exits-due.patch | 5 +++-- openjdk-1.8.0.spec | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Fix-the-crash-that-occurs-when-the-process-exits-due.patch b/Fix-the-crash-that-occurs-when-the-process-exits-due.patch index 47904e8..8e95201 100644 --- a/Fix-the-crash-that-occurs-when-the-process-exits-due.patch +++ b/Fix-the-crash-that-occurs-when-the-process-exits-due.patch @@ -46,18 +46,19 @@ index 750a23f..7722020 100644 _buffer_max_size(AsyncLogBufferSize / sizeof(AsyncLogMessage)) { if (os::create_thread(this, os::asynclog_thread)) { _initialized = true; -@@ -124,6 +124,10 @@ void AsyncLogWriter::run() { +@@ -124,6 +124,11 @@ void AsyncLogWriter::run() { // The value of a semphore cannot be negative. Therefore, the current thread falls asleep // when its value is zero. It will be waken up when new messages are enqueued. _sem.wait(); + if (_should_terminate) { ++ write(); + terminate(); + break; + } write(); } } -@@ -162,3 +166,32 @@ void AsyncLogWriter::print_on(outputStream* st) const{ +@@ -162,3 +167,32 @@ void AsyncLogWriter::print_on(outputStream* st) const{ Thread::print_on(st); st->cr(); } diff --git a/openjdk-1.8.0.spec b/openjdk-1.8.0.spec index 40933b2..6e9d326 100644 --- a/openjdk-1.8.0.spec +++ b/openjdk-1.8.0.spec @@ -916,7 +916,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r Name: java-%{javaver}-%{origin} Version: %{javaver}.%{updatever}.%{buildver} -Release: 0 +Release: 1 # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # and this change was brought into RHEL-4. java-1.5.0-ibm packages # also included the epoch in their virtual provides. This created a @@ -2334,6 +2334,9 @@ cjc.mainProgram(arg) %endif %changelog +* Fri May 11 2023 crash888 - 1:1.8.0.372-b07.1 +- modified Fix-the-crash-that-occurs-when-the-process-exits-due.patch + * Fri May 6 2023 crash888 - 1:1.8.0.372-b07.0 - deleted Add-ability-to-configure-third-port-for-remote-JMX.patch - deleted 8287109-Distrust-failed-with-CertificateExpired.patch