Fwd: I can't build in MacOS
sevendrofleneux at icloud.com
Wed Apr 17 15:39:48 UTC 2019
Yea it doesn’t work if it’s in another thread both jdbc and pool example fails. I may need to change jdbc library from maria to mysql-connector-j.
> İleti başlangıcı:
> Kimden: Alan Bateman <Alan.Bateman at oracle.com>
> Konu: Ynt: Fwd: I can't build in MacOS
> Tarih: 17 Nisan 2019 10:24:44 GMT+3
> Kime: Altan Özlü <sevendrofleneux at icloud.com>, loom-dev at openjdk.java.net
> On 17/04/2019 02:33, Altan Özlü wrote:
>> Hi it’s me again i’ve tried to use mysql in fibers and changed sync blocks in mariadb jdbc using locks. It works fine only if i create connection in current fiber if it’s started in another fiber or main thread it’s stopping at executeQuery.
>> Here is codes : https://gist.github.com/Sevenops/a1050b104137d2df1f799b2d0700eb0c
> I think you'll need to diagnose this a bit further. Without fibers, can you create the JDBC connection and hand it to another thread to use? When you say it is "stopping at executeQuery" then I assume you can get more information on that as your are building the modified JDBC driver yourself. I do note that your connection string disables SSL so that at least eliminates some of the complexity from the picture (although you shouldn't have any issue with SSL connections now as that has been updated to use explicit locks too).
More information about the loom-dev