Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate runtime APIs for Java 21 #1277

Merged
merged 72 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
018aaa8
Update file_server test results on Wed Oct 2 04:15:54 UTC 2024
Oct 2, 2024
2540db0
Merge pull request #1242 from ballerina-platform/load-test-results
ballerina-bot Oct 2, 2024
70d8b0c
Update file_server test results on Thu Oct 3 04:16:36 UTC 2024
Oct 3, 2024
791be39
Merge pull request #1243 from ballerina-platform/load-test-results
ballerina-bot Oct 3, 2024
f54d7bc
Update file_server test results on Fri Oct 4 04:15:38 UTC 2024
Oct 4, 2024
6e24865
Merge pull request #1244 from ballerina-platform/load-test-results
ballerina-bot Oct 4, 2024
5fc1492
Update file_server test results on Sat Oct 5 04:15:31 UTC 2024
Oct 5, 2024
a51c6f5
Merge pull request #1245 from ballerina-platform/load-test-results
ballerina-bot Oct 5, 2024
26ec8d2
Update file_server test results on Sun Oct 6 04:20:20 UTC 2024
Oct 6, 2024
136ea96
Merge pull request #1246 from ballerina-platform/load-test-results
ballerina-bot Oct 6, 2024
7d687ac
Update file_server test results on Mon Oct 7 04:18:03 UTC 2024
Oct 7, 2024
21ca896
Merge pull request #1247 from ballerina-platform/load-test-results
ballerina-bot Oct 7, 2024
608fefa
Update file_server test results on Tue Oct 8 04:18:19 UTC 2024
Oct 8, 2024
eb04443
Merge pull request #1249 from ballerina-platform/load-test-results
ballerina-bot Oct 8, 2024
ee258f7
Update file_server test results on Wed Oct 9 04:17:45 UTC 2024
Oct 9, 2024
11dfbc1
Merge pull request #1250 from ballerina-platform/load-test-results
ballerina-bot Oct 9, 2024
7214ed2
Update file_server test results on Thu Oct 10 04:15:04 UTC 2024
Oct 10, 2024
eeeb064
Merge pull request #1251 from ballerina-platform/load-test-results
ballerina-bot Oct 10, 2024
36961eb
Update file_server test results on Sat Oct 12 04:14:15 UTC 2024
Oct 12, 2024
b621638
Merge pull request #1252 from ballerina-platform/load-test-results
ballerina-bot Oct 12, 2024
d7e3e0a
Update file_server test results on Sun Oct 13 04:18:28 UTC 2024
Oct 13, 2024
b7ac0f3
Merge pull request #1253 from ballerina-platform/load-test-results
ballerina-bot Oct 13, 2024
0c08578
Update file_server test results on Mon Oct 14 04:18:47 UTC 2024
Oct 14, 2024
0d2d0c7
Merge pull request #1254 from ballerina-platform/load-test-results
ballerina-bot Oct 14, 2024
9868113
Update file_server test results on Tue Oct 15 04:17:29 UTC 2024
Oct 15, 2024
60b03ec
Merge pull request #1255 from ballerina-platform/load-test-results
ballerina-bot Oct 15, 2024
fad34f7
Update file_server test results on Wed Oct 16 04:17:35 UTC 2024
Oct 16, 2024
0edc812
Merge pull request #1256 from ballerina-platform/load-test-results
ballerina-bot Oct 16, 2024
de5ab42
Update file_server test results on Thu Oct 17 04:16:00 UTC 2024
Oct 17, 2024
670db81
Merge pull request #1257 from ballerina-platform/load-test-results
ballerina-bot Oct 17, 2024
41b6f6c
Update file_server test results on Sat Oct 26 04:15:47 UTC 2024
Oct 26, 2024
367bca2
Merge pull request #1258 from ballerina-platform/load-test-results
ballerina-bot Oct 26, 2024
6269c43
Update file_server test results on Sun Oct 27 04:18:59 UTC 2024
Oct 27, 2024
f5cedf4
Merge pull request #1259 from ballerina-platform/load-test-results
ballerina-bot Oct 27, 2024
5ea37fa
Update file_server test results on Mon Oct 28 04:20:08 UTC 2024
Oct 28, 2024
2967359
Merge pull request #1260 from ballerina-platform/load-test-results
ballerina-bot Oct 28, 2024
7a7d5d8
Update file_server test results on Tue Oct 29 04:18:08 UTC 2024
Oct 29, 2024
910f1b1
Merge pull request #1261 from ballerina-platform/load-test-results
ballerina-bot Oct 29, 2024
be881fe
Update file_server test results on Wed Oct 30 04:16:29 UTC 2024
Oct 30, 2024
f1ecaea
Merge pull request #1262 from ballerina-platform/load-test-results
ballerina-bot Oct 30, 2024
8a83344
Update file_server test results on Thu Oct 31 04:18:25 UTC 2024
Oct 31, 2024
de1ab1d
Merge pull request #1263 from ballerina-platform/load-test-results
ballerina-bot Oct 31, 2024
9eadc28
Update file_server test results on Fri Nov 1 04:22:38 UTC 2024
Nov 1, 2024
a144f2d
Merge pull request #1264 from ballerina-platform/load-test-results
ballerina-bot Nov 1, 2024
a6c7e78
Update file_server test results on Sat Nov 2 05:02:33 UTC 2024
Nov 2, 2024
99f6fec
Merge pull request #1265 from ballerina-platform/load-test-results
ballerina-bot Nov 2, 2024
e6af910
Update file_server test results on Sun Nov 3 04:20:57 UTC 2024
Nov 3, 2024
c816804
Merge pull request #1266 from ballerina-platform/load-test-results
ballerina-bot Nov 3, 2024
7d49604
Update file_server test results on Mon Nov 4 04:18:31 UTC 2024
Nov 4, 2024
7f6e5a5
Merge pull request #1267 from ballerina-platform/load-test-results
ballerina-bot Nov 4, 2024
b0c19f0
Update file_server test results on Tue Nov 5 04:15:10 UTC 2024
Nov 5, 2024
50ced28
Merge pull request #1268 from ballerina-platform/load-test-results
ballerina-bot Nov 5, 2024
0acd6c2
Update file_server test results on Wed Nov 6 04:13:24 UTC 2024
Nov 6, 2024
5cc3f86
Merge pull request #1269 from ballerina-platform/load-test-results
ballerina-bot Nov 6, 2024
f0211ab
Update file_server test results on Thu Nov 7 04:16:31 UTC 2024
Nov 7, 2024
b367a13
Merge pull request #1270 from ballerina-platform/load-test-results
ballerina-bot Nov 7, 2024
d6bf03a
Update file_server test results on Fri Nov 8 04:13:55 UTC 2024
Nov 8, 2024
49efdb1
Merge pull request #1271 from ballerina-platform/load-test-results
ballerina-bot Nov 8, 2024
5936edc
Update file_server test results on Sat Nov 9 04:14:08 UTC 2024
Nov 9, 2024
36993c6
Merge pull request #1272 from ballerina-platform/load-test-results
ballerina-bot Nov 9, 2024
de7f9ff
Update file_server test results on Sun Nov 10 04:16:02 UTC 2024
Nov 10, 2024
6afbee5
Merge pull request #1273 from ballerina-platform/load-test-results
ballerina-bot Nov 10, 2024
111c7ab
Update file_server test results on Mon Nov 11 04:15:21 UTC 2024
Nov 11, 2024
22b8ea7
Merge pull request #1274 from ballerina-platform/load-test-results
ballerina-bot Nov 11, 2024
b6e7c62
Update file_server test results on Tue Nov 12 04:11:19 UTC 2024
Nov 12, 2024
9ccfa62
Merge pull request #1275 from ballerina-platform/load-test-results
ballerina-bot Nov 12, 2024
433bb30
Update file_server test results on Wed Nov 13 04:14:13 UTC 2024
Nov 13, 2024
02e0f7a
Merge pull request #1276 from ballerina-platform/load-test-results
ballerina-bot Nov 13, 2024
4b95350
Merge branch 'main' of github.com:ballerina-platform/module-ballerina…
HindujaB Nov 13, 2024
c7876f1
[Automated] Update the native jar versions
HindujaB Nov 13, 2024
01a0ac0
Migrate runtime APIs
HindujaB Nov 13, 2024
cba3864
Revert "[Automated] Update the native jar versions"
HindujaB Nov 13, 2024
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
10 changes: 5 additions & 5 deletions 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=1.11.1-SNAPSHOT
ballerinaLangVersion=2201.10.0-20241011-161100-51978649
ballerinaLangVersion=2201.11.0-20241112-214900-6b80ab87

puppycrawlCheckstyleVersion=10.12.0
githubJohnrengelmanShadowVersion=8.1.1
Expand All @@ -16,7 +16,7 @@ ballerinaGradlePluginVersion=2.0.1
gsonVersion=2.8.8

# Dependencies
stdlibIoVersion=1.6.2-20240928-084100-656404f
stdlibLogVersion=2.10.1-20240930-154200-5ab2aa4
observeVersion=1.3.1-20241007-161000-645452d
observeInternalVersion=1.3.1-20241007-182700-a5f77a1
stdlibIoVersion=1.6.2-20241112-233100-995cf5f
stdlibLogVersion=2.10.1-20241113-120000-4577868
observeVersion=1.4.0-20241113-092000-b83ae74
observeInternalVersion=1.3.1-20241113-101700-265054d
34 changes: 34 additions & 0 deletions load-tests/file_server/results/summary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -673,3 +673,37 @@ UDP File Server,21558,0.16702380376722178,0,0,0,0,0,0,0.0,5.9871705556034565,0,0
UDP File Server,21564,0.16699010523976254,0,0,0,0,0,0,0.0,5.98837876390467,0,0,1727583563,0,1
UDP File Server,21564,0.16698891979117006,0,0,0,0,0,0,0.0,5.988421275199347,0,0,1727669984,0,1
UDP File Server,21564,0.16699366446793118,0,0,0,0,0,0,0.0,5.988251130281869,0,0,1727756530,0,1
UDP File Server,21564,0.16699765402397626,0,0,0,0,0,0,0.0,5.9881080716045725,0,0,1727842501,0,1
UDP File Server,21564,0.1669839930141446,0,0,0,0,0,0,0.0,5.988597960496092,0,0,1727928954,0,1
UDP File Server,21558,0.1670041055625551,0,0,0,0,0,0,0.0,5.98787674489492,0,0,1728015282,0,1
UDP File Server,21570,0.16690939322708517,0,0,0,0,0,0,0.0,5.991274551213966,0,0,1728101672,0,1
UDP File Server,21564,0.1669914493497658,0,0,0,0,0,0,0.0,5.988330563593629,0,0,1728188363,0,1
UDP File Server,21564,0.16699223304368593,0,0,0,0,0,0,0.0,5.9883024603808686,0,0,1728274640,0,1
UDP File Server,21564,0.1669812565158373,0,0,0,0,0,0,0.0,5.988696101979297,0,0,1728361044,0,1
UDP File Server,21558,0.1670221962050842,0,0,0,0,0,0,0.0,5.987228181170089,0,0,1728447409,0,1
UDP File Server,21558,0.16701107281263627,0,0,0,0,0,0,0.0,5.987626946878332,0,0,1728533642,0,1
UDP File Server,21564,0.16699155905713492,0,0,0,0,0,0,0.0,5.988326629478665,0,0,1728706413,0,1
UDP File Server,21552,0.16705186884645726,0,0,0,0,0,0,0.0,5.986164697858796,0,0,1728793060,0,1
UDP File Server,21564,0.1669852562144878,0,0,0,0,0,0,0.0,5.9885526582989375,0,0,1728879488,0,1
UDP File Server,21558,0.16700139246332976,0,0,0,0,0,0,0.0,5.98797402374702,0,0,1728965804,0,1
UDP File Server,21564,0.16697999138413022,0,0,0,0,0,0,0.0,5.988741475615144,0,0,1729052208,0,1
UDP File Server,21558,0.1670008201825393,0,0,0,0,0,0,0.0,5.9879945434217365,0,0,1729138524,0,1
UDP File Server,21564,0.16698836206181886,0,0,0,0,0,0,0.0,5.988441276104028,0,0,1729916080,0,1
UDP File Server,21558,0.1670004881747924,0,0,0,0,0,0,0.0,5.98800644794129,0,0,1730002686,0,1
UDP File Server,21558,0.16700891871011736,0,0,0,0,0,0,0.0,5.987704176060989,0,0,1730089148,0,1
UDP File Server,21564,0.16699259673746697,0,0,0,0,0,0,0.0,5.988289418435261,0,0,1730175448,0,1
UDP File Server,21558,0.16700975420383168,0,0,0,0,0,0,0.0,5.987674221587813,0,0,1730261742,0,1
UDP File Server,21558,0.16700675549362157,0,0,0,0,0,0,0.0,5.987781734004123,0,0,1730348264,0,1
UDP File Server,21558,0.16700852059493437,0,0,0,0,0,0,0.0,5.987718449559941,0,0,1730434914,0,1
UDP File Server,21558,0.16702995962197895,0,0,0,0,0,0,0.0,5.986949899665864,0,0,1730523712,0,1
UDP File Server,21564,0.16699195377248063,0,0,0,0,0,0,0.0,5.988312474997789,0,0,1730607613,0,1
UDP File Server,21558,0.16700211848049357,0,0,0,0,0,0,0.0,5.987947991910075,0,0,1730693855,0,1
UDP File Server,21564,0.16698917251017947,0,0,0,0,0,0,0.0,5.988412212408808,0,0,1730780063,0,1
UDP File Server,21558,0.1670235100334462,0,0,0,0,0,0,0.0,5.987181084864948,0,0,1730866339,0,1
UDP File Server,21552,0.16707671421089507,0,0,0,0,0,0,0.0,5.9852745172959,0,0,1730952950,0,1
UDP File Server,21558,0.16703223659595492,0,0,0,0,0,0,0.0,5.986868285904383,0,0,1731039196,0,1
UDP File Server,21564,0.16698260284886146,0,0,0,0,0,0,0.0,5.988647816833443,0,0,1731125608,0,1
UDP File Server,21558,0.16700318231307695,0,0,0,0,0,0,0.0,5.987909847881363,0,0,1731212118,0,1
UDP File Server,21564,0.16698017657756342,0,0,0,0,0,0,0.0,5.988734833655498,0,0,1731298461,0,1
UDP File Server,21570,0.166910144100561,0,0,0,0,0,0,0.0,5.991247598453419,0,0,1731384641,0,1
UDP File Server,21564,0.16697610409187033,0,0,0,0,0,0,0.0,5.988880896692856,0,0,1731471214,0,1
14 changes: 5 additions & 9 deletions native/src/main/java/io/ballerina/stdlib/udp/Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
package io.ballerina.stdlib.udp;

import io.ballerina.runtime.api.Runtime;
import io.ballerina.runtime.api.TypeTags;
import io.ballerina.runtime.api.async.StrandMetadata;
import io.ballerina.runtime.api.concurrent.StrandMetadata;
import io.ballerina.runtime.api.creators.ErrorCreator;
import io.ballerina.runtime.api.creators.ValueCreator;
import io.ballerina.runtime.api.types.MethodType;
import io.ballerina.runtime.api.types.ObjectType;
import io.ballerina.runtime.api.types.Parameter;
import io.ballerina.runtime.api.types.Type;
import io.ballerina.runtime.api.types.TypeTags;
import io.ballerina.runtime.api.utils.StringUtils;
import io.ballerina.runtime.api.utils.TypeUtils;
import io.ballerina.runtime.api.values.BArray;
Expand Down Expand Up @@ -92,16 +92,12 @@ private static void invokeAsyncCall(UdpService udpService, DatagramPacket datagr
Thread.startVirtualThread(() -> {
BObject service = udpService.getService();
Runtime runtime = udpService.getRuntime();
StrandMetadata metadata = new StrandMetadata(Utils.getModule().getOrg(), Utils.getModule().getName(),
Utils.getModule().getVersion(), methodName);
ObjectType objectType = (ObjectType) TypeUtils.getReferredType(TypeUtils.getType(service));
StrandMetadata metadata = new StrandMetadata(
objectType.isIsolated() && objectType.isIsolated(methodName), null);
Object result;
try {
if (objectType.isIsolated() && objectType.isIsolated(methodName)) {
result = runtime.startIsolatedWorker(service, methodName, null, metadata, null, params).get();
} else {
result = runtime.startNonIsolatedWorker(service, methodName, null, metadata, null, params).get();
}
result = runtime.callMethod(service, methodName, metadata, params);
handleResult(udpService, datagramPacket, channel, result);
} catch (BError error) {
handleError(error);
Expand Down
Loading