io: Correct handling of byte count pos in TBufferFile::ReadObjectAny#21192
Open
pcanal wants to merge 16 commits intoroot-project:Arlesiennefrom
Open
io: Correct handling of byte count pos in TBufferFile::ReadObjectAny#21192pcanal wants to merge 16 commits intoroot-project:Arlesiennefrom
pcanal wants to merge 16 commits intoroot-project:Arlesiennefrom
Conversation
Member
Author
|
Note that 588b29e was also not reviewed. |
Test Results 21 files ± 0 21 suites ±0 3d 1h 52m 4s ⏱️ - 10h 31m 34s For more details on these failures, see this check. Results for commit 733ac65. ± Comparison against base commit 588b29e. ♻️ This comment has been updated with latest results. |
Collaborator
|
Closing #20498 since it seems this is an alternative / better approach |
jblomer
approved these changes
Feb 9, 2026
This fixes TBufferFile::ReadObjectAny handling of long range byte counts
Those were essentially replaced by a 'set the cursor to the end' call in commit 7d25b75. It is dubious whether these changes are needed or were an heurestic to ignore (temporarily !?) race conditions.
Due to the need for using a stack of bytecount position, we can no longer support redundant calls to CheckByteCount.
f8c704e to
18f2597
Compare
1ca66ec to
33e27a1
Compare
This simplify the implementation of calling `ReserveByteCount` and then `SetByteCount` and could also simplify removing the use of the ByteCountStack in some/most cases. Note: `ReserveByteCount` is protected and the existing code that does the same semantic action was only recording the position in a 32 bits integer. That code needs to be updated by either making `ReserverByteCount` public (making removal of external use of the ByteCountStack more difficult) or by introducing a RAII that hides the size of the integer.
In order to allow using the roottest CMake macro outside of the roottest sub-directory, we need to make the variable used by those macros 'cache variable' so that they can use elsewhere. This is a hack and works only after the second CMake configuration/invocation.
Member
Author
When using the Microsoft Visual Studio generator we have the exact same problem, that it might trigger a rebuild of ROOT so we need to apply the same solution. See 06e00a2. PS. We might want to eventually rename the resource lock.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a missing commit for #21183 which was merge a bit too soon.