Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified jabsorb-1.2.5.jar
Binary file not shown.
Binary file modified json.jar
Binary file not shown.
7 changes: 5 additions & 2 deletions src/org/jabsorb/serializer/MarshallingModeContext.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package org.jabsorb.serializer;

import java.util.Deque;
import java.util.Stack;
import java.util.ArrayDeque;
import java.util.Deque;

/**
* Context that holds the marshalling mode for a given thread.
Expand All @@ -16,6 +15,10 @@ public class MarshallingModeContext {
protected Deque<MarshallingMode> initialValue() {
return new ArrayDeque<>();
}
@Override
protected Deque<MarshallingMode> childValue(Deque<MarshallingMode> parentValue) {
return new ArrayDeque<>(parentValue);
}
};

/**
Expand Down
9 changes: 9 additions & 0 deletions webapps/jsonrpc/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
CHANGES log

2026-06-15 jabsorb 1.2.5 fix

* Fix InheritableThreadLocal race in MarshallingModeContext
* Override childValue() to return a defensive copy of the parent's ArrayDeque
* instead of sharing the same mutable reference. On JDK21, aggressive parallel
* thread creation during UVM startup caused concurrent push/pop corruption on
* the shared stack, silently failing SettingsManager.save() and leaving settings
* files (admin.js, system.js) missing from disk.

2025-08-05 jabsorb 1.2.5 release

* Support for Two Marshalling Modes
Expand Down