Repository navigation
Bump MASES.JCOBridge from 2.6.9-rc6 to 2.6.9-rc8 - #1014
Merged
masesdevelopers merged 6 commits intoApr 29, 2026
Merged
Conversation
--- updated-dependencies: - dependency-name: MASES.JCOBridge dependency-version: 2.6.9-rc8 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: MASES.JCOBridge dependency-version: 2.6.9-rc8 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Enforce unmanaged type constraints and improve docs for JVM-CLR primitive mappings; remove an unused field; add ByteBuffer usage/performance tests. - JNetCoreExtensions.cs: expanded XML docs describing .NET↔JVM primitive type mappings and added `where TData : unmanaged` to DirectBufferWithWrap to restrict element types to unmanaged primitives. - JNetHelper.cs: added the same primitive mapping docs and added `where T : unmanaged` to ListFrom to ensure only supported primitive types are used. - Java.Awt.Container.cs: removed an unused `_disposed` field. - tests/net/JNetByteBufferTest/Program.cs: added `using MASES.JCOBridge.C2JBridge;`, a new TestGetByteBuffersDataUsage() method that benchmarks and verifies ToArray/ToStream/AsSpan paths for ByteBuffer, and invoked it across multiple sizes. - tests/net/JNetTest/Program.cs: changed a silent IsDirect() call to a Console.WriteLine for visibility and added TestByteBuffersUsage() with additional direct buffer manipulation checks. These changes tighten type-safety for native buffer operations and add tests to validate and measure ByteBuffer data access paths.
| Stopwatch watcher2 = Stopwatch.StartNew(); | ||
| for (iteration = 0; iteration < requestedIterations; iteration++) | ||
| { | ||
| using (JCOBridgeDirectBuffer<byte> db = res.ToDirectBuffer()) |
| Stopwatch watcher3 = Stopwatch.StartNew(); | ||
| for (iteration = 0; iteration < requestedIterations; iteration++) | ||
| { | ||
| using (JCOBridgeDirectBuffer<byte> db = res.ToDirectBuffer()) |
| } | ||
| var jClass = JNetTestCore.GlobalInstance.JVM.New("org.mases.jnet.TestArrayAndByteBuffer", length) as IJavaObject; | ||
|
|
||
| System.GC.Collect(); |
|
|
||
| Console.WriteLine($"End getArray -> Invoke<byte[]> -> SequenceEqual Elapsed {watcher1.Elapsed} - Mean {TimeSpan.FromTicks(watcher1.Elapsed.Ticks / iteration)}"); | ||
|
|
||
| System.GC.Collect(); |
|
|
||
| Console.WriteLine($"End getArray -> AreEqualChunked Elapsed {watcher2.Elapsed} - Mean {TimeSpan.FromTicks(watcher2.Elapsed.Ticks / iteration)}"); | ||
|
|
||
| System.GC.Collect(); |
| } | ||
| var jClass = JNetTestCore.GlobalInstance.JVM.New("org.mases.jnet.TestArrayAndByteBuffer", length) as IJavaObject; | ||
|
|
||
| System.GC.Collect(); |
|
|
||
| Console.WriteLine($"Created TestArrayAndByteBuffer"); | ||
|
|
||
| System.GC.Collect(); |
|
|
||
| Console.WriteLine($"End getByteBuffer -> ToArray -> SequenceEqual Elapsed {watcher1.Elapsed} - Mean {TimeSpan.FromTicks(watcher1.Elapsed.Ticks / iteration)}"); | ||
|
|
||
| System.GC.Collect(); |
|
|
||
| Console.WriteLine($"End getByteBuffer -> ToStream -> AreEqualNaive Elapsed {watcher2.Elapsed} - Mean {TimeSpan.FromTicks(watcher2.Elapsed.Ticks / iteration)}"); | ||
|
|
||
| System.GC.Collect(); |
|
|
||
| Console.WriteLine($"End getByteBuffer -> ToStream -> AreEqualChunked Elapsed {watcher3.Elapsed} - Mean {TimeSpan.FromTicks(watcher3.Elapsed.Ticks / iteration)}"); | ||
|
|
||
| System.GC.Collect(); |
masesdevelopers
deleted the
dependabot/nuget/src/net/JNet/multi-d5360e4135
branch
April 29, 2026 04:15
This was referenced Apr 29, 2026
This was referenced Jun 15, 2026
This was referenced Jun 22, 2026
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.
Updated MASES.JCOBridge from 2.6.9-rc6 to 2.6.9-rc8.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)