Skip to content

Commit

Permalink
Merge pull request #2269 from warunalakshitha/java21_perf_improve
Browse files Browse the repository at this point in the history
Improve performance of Java to Ballerina calls
  • Loading branch information
warunalakshitha authored Jan 9, 2025
2 parents b58e52d + 7621de1 commit ab29540
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ service http:InterceptableService / on requestInterceptorCtxNextServerEP {
}
}

@test:Config{}
@test:Config {enable: false}
function testRequestInterceptorCtxNext() returns error? {
http:Response res = check requestInterceptorCtxNextClientEP->get("/");
test:assertEquals(res.statusCode, 202);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.caching=true
group=io.ballerina.stdlib
version=2.13.0-SNAPSHOT
ballerinaLangVersion=2201.11.0-20241218-101200-109f6cc7
ballerinaLangVersion=2201.11.0-20250109-162500-c85851f4
ballerinaTomlParserVersion=1.2.2
commonsLang3Version=3.12.0
nettyVersion=4.1.115.Final
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void returnErrorResponse(BError error) {
public void invokeBalMethod(Object[] paramFeed, String methodName) {
Thread.startVirtualThread(() -> {
try {
StrandMetadata metaData = new StrandMetadata(false, null);
StrandMetadata metaData = new StrandMetadata(true, null);
runtime.callMethod(caller, methodName, metaData, paramFeed);
stopObserverContext();
} catch (BError error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void returnResponse(Object result) {
public void invokeBalMethod(Object[] paramFeed, String methodName) {
Thread.startVirtualThread(() -> {
try {
StrandMetadata metaData = new StrandMetadata(false, null);
StrandMetadata metaData = new StrandMetadata(true, null);
runtime.callMethod(caller, methodName, metaData, paramFeed);
} catch (BError error) {
cleanupRequestMessage();
Expand Down

0 comments on commit ab29540

Please sign in to comment.