stephan
|
5ecb51c260
|
Only build in the JNI-side metrics tracking in SQLITE_DEBUG builds.
FossilOrigin-Name: 646e7fc3b5ba81c207f013c9a06781986138379f20e787320a811ba3ed5489dc
|
2023-08-25 04:27:17 +00:00 |
|
stephan
|
aec1361a2b
|
Javadoc and internal API cleanups.
FossilOrigin-Name: 10a43cba9bb2c23b5f31b31fcac81be34acec1940cca47d0b8e5a5ccbf1aa8eb
|
2023-08-25 04:02:33 +00:00 |
|
stephan
|
5276552083
|
Replace all of the JNI XyzHook/Handler classes with snake_cased ones which follow unified naming conventions to make them easier to apply.
FossilOrigin-Name: 76e62a381249b3b4262b22bdffe7fc2816c820115c9df266956ab8817b127aca
|
2023-08-25 02:57:30 +00:00 |
|
stephan
|
44b4b8260f
|
javadoc additions.
FossilOrigin-Name: bedf33d403677d243a1505ce549166850ab55671700b143278db5feb84883ab3
|
2023-08-25 00:27:28 +00:00 |
|
stephan
|
3401736694
|
Re-frame the incongruous SQLite3Jni.uncacheThread() API as sqlite3_java_uncache_thread().
FossilOrigin-Name: 7232b033954fae40df3db43e489e0e5a703c03308f500a1ae36fd9d707632d7f
|
2023-08-24 22:28:44 +00:00 |
|
stephan
|
70dcc2822d
|
Update some outdated JNI docs and account for a function renamed earlier this evening.
FossilOrigin-Name: 3f684ef5018116f4be46a07779451c8983ac87a5db182477f71ee7bf28287a04
|
2023-08-24 21:45:30 +00:00 |
|
stephan
|
0f0bf3ff9e
|
Do not pre-allocate sqlite3_aggregate_context() for Java UDFs, as it unduly complicates UDF initialization.
FossilOrigin-Name: e8308f0c6ec2d8999c8a2502fb130cb3501ba326f23f71f2cd8d452debae79b5
|
2023-08-24 21:31:56 +00:00 |
|
stephan
|
eef599dbd4
|
More code legibility and style improvements in the JNI pieces. Start work on a javadoc build.
FossilOrigin-Name: 62b404d62fd62f4d220838b59c9f38a71afa2d4a8c3af0a5c9495fa7020972cf
|
2023-08-24 18:43:25 +00:00 |
|
stephan
|
e336d92688
|
Doc, code style, and legibility cleanups.
FossilOrigin-Name: cf185bcd25629d882a030b8b87048179a120ab1f84aa1d68b279c499dbdf0dba
|
2023-08-24 17:25:05 +00:00 |
|
stephan
|
cf8a93f804
|
Doc style fixes.
FossilOrigin-Name: 862f9828e078ae138c3533658c45e4c45155975794e752b9b3a71a693842f37a
|
2023-08-24 15:42:08 +00:00 |
|
stephan
|
e6c299a5c8
|
Add a new non-goal to the JNI README.md.
FossilOrigin-Name: 53000cdae9b265752f8d8616679da621a571a6590c6eaeca23cf87a0e13aa4c4
|
2023-08-24 15:11:28 +00:00 |
|
stephan
|
8e52281659
|
Merge the jni-threading branch into trunk, eliminating the JNI API's prior threading limitations.
FossilOrigin-Name: 3739c8aa7080d8e1044ca51ab7b699b50da4d29620b35acfcea2745059b65bac
|
2023-08-24 14:49:29 +00:00 |
|
stephan
|
49ca4d20fa
|
Merge into trunk improvements made to the wasm APIs which were too late for 3.43.
FossilOrigin-Name: ac9da5c79a4f56d25202d50974e16e2a463d77c99b1907aee2605d5a3e50a565
|
2023-08-24 14:43:30 +00:00 |
|
stephan
|
e7a4685837
|
Correct JNI layer's misuse of an sqlite3-internal error-reporting API (no mutex held). Style cleanups. Eliminate lookups of per-thread state by approximately 85% across the test suite.
FossilOrigin-Name: 1f46ba8d3bc61af771c1e33d09ad25f0da4fc4f915f7a9f6223ebfd99526d81d
|
2023-08-24 14:31:36 +00:00 |
|
stephan
|
6043947eee
|
Ensure that db mutex is held when using sqlite3ErrorWithMessage() to avoid a potential assertion in debug builds.
FossilOrigin-Name: b8f6a50a4bf9478324f0272d79f2fe6992a49b753e79e39a268c6afb261bb01e
|
2023-08-24 14:17:30 +00:00 |
|
dan
|
e174dba739
|
Change a variable name in fts5FlushOneHash() to avoid shadowing another.
FossilOrigin-Name: 3f5bec9a684f6b3d88383617831862fc5595a51ad99ec12430ac6650b704ccbb
|
2023-08-24 12:01:30 +00:00 |
|
stephan
|
bfdc7ab5a7
|
Add more JNI docs, tests, and a handful of Java-side overloads.
FossilOrigin-Name: d19a431facbde6a6b960664674753ee85d2c051a76109ce7db0b079c65fbdea0
|
2023-08-24 11:57:51 +00:00 |
|
stephan
|
8cafdfa916
|
JNI cleanups regarding building with certain features disabled.
FossilOrigin-Name: a9e6d5158b8a4a6b8554a5f8f0a35785ee450d42ea877275dc27085e89716c18
|
2023-08-23 17:52:51 +00:00 |
|
stephan
|
1c3bf8a3e1
|
Remove unnecessary jclass-type struct members.
FossilOrigin-Name: d67255f7251cc5d1d27d77d4c84ff216e2da71202db989718189a6b4beff1cd0
|
2023-08-23 17:15:48 +00:00 |
|
stephan
|
495046ef88
|
Add a note to the JNI README explaining why the Java API has callback names like xFunc() and xPreUpdate().
FossilOrigin-Name: 415447a310f6a7d06b4aa9ef51f110cf8e2ef9545c69cb5983c367c50fe641d2
|
2023-08-23 13:36:27 +00:00 |
|
stephan
|
bea9ed0f1f
|
Bind sqlite3_preupdate_hook() and friends to JNI.
FossilOrigin-Name: d0c425b5c1d3aac5ead18a501a3760b4506d68d373cb3be484247042cf2fa8d4
|
2023-08-23 13:17:37 +00:00 |
|
stephan
|
4e97ab4296
|
Bind a subset of sqlite3_config() to JNI: threading modes and sqllog.
FossilOrigin-Name: fce8ecaf7f2e69a168978e6993e58c452c45f76c39da33f2869c9d947c16cab1
|
2023-08-23 10:36:12 +00:00 |
|
stephan
|
4c8ef3894e
|
Numerous minor cleanups and code style conformance improvements.
FossilOrigin-Name: 6c92d884920e4ace54913fc60ceef6e43a4351f45a4cb3c4a0ed3d29d544a31b
|
2023-08-23 09:05:16 +00:00 |
|
stephan
|
336bc8a281
|
Improve C-side exception handling from Java-side UDF callbacks.
FossilOrigin-Name: aebbc24afb339ed07b7cd767fbc0d25f3e9c3d9bb5ef3d1c10b04b605c7261bc
|
2023-08-23 00:17:28 +00:00 |
|
stephan
|
d53565b4f8
|
Minor Tester1.java cleanups.
FossilOrigin-Name: 70d936953ba55cfed32efe7e3a9d4b71da9a7ffc8818b6540471e0bf311bc688
|
2023-08-22 23:00:44 +00:00 |
|
stephan
|
3600976bf1
|
Fix Tester1 so that exceptions triggered via threads are not silently ignored. Disable auto-extension tests in multi-thread mode because concurrent threads rightfully interfere with that.
FossilOrigin-Name: 56b2a077ace6e6ad5834e1a597b710f212a5b7d5db5b9a27a41f2aa0f6952c55
|
2023-08-22 22:13:08 +00:00 |
|
stephan
|
d1c7216b2f
|
More work on the JNI multi-threaded test runner.
FossilOrigin-Name: 9a74ad716bded1e14333bf7c72392916f800d58a96240eabe4988ca5fc9e8752
|
2023-08-22 20:10:28 +00:00 |
|
stephan
|
87bb103038
|
Disassociate JNI db handles from the thread that created them, as it's no longer relevant.
FossilOrigin-Name: 8b78b737e66a399b04e555a8197f63a73198a4105cb2f37ffd5b0e6014302caf
|
2023-08-22 18:36:30 +00:00 |
|
stephan
|
c675add616
|
Correct JNI binding of sqlite3_shutdown() to clean up all cached JNIEnv objects.
FossilOrigin-Name: 02e868690f97ca728b0f2dd018aa79a9d13c85dd85b164caa895d319ae8f3ff5
|
2023-08-22 17:51:57 +00:00 |
|
stephan
|
a7e3a1c09b
|
JNI internal cleanups and correct two leaked db handles in test code.
FossilOrigin-Name: f927a30b5bba35991f472084ebaf02779e84c343a4e84f0efb3df7679ff212f8
|
2023-08-22 17:36:59 +00:00 |
|
stephan
|
9828aa223a
|
Move the JNI per-thread cache of NativePointerHolder refs into global space. This allows better-targeted mutex locks and incidentally eliminates the lagginess and post-run hangs in Tester1's multi-thread mode (presumably caused by deadlocks).
FossilOrigin-Name: e209f56a9745695aadc04418c7bebe62b79e38e5aee26c3248a30f73bfa460c2
|
2023-08-22 15:30:35 +00:00 |
|
stephan
|
0a102087d8
|
Move most of the per-JNIEnv global Java class refs into the global state, saving a bit of per-thread overhead.
FossilOrigin-Name: 7342bf578790e1a87c128a7c1c7745fe2e7c442890370feb160d406597d4d8ec
|
2023-08-22 11:34:34 +00:00 |
|
stephan
|
484f9bed4e
|
Minor JNI cleanups.
FossilOrigin-Name: b88910aaaaaaa0936974379bb3eb8a5a3a634395b14e67cc9030f8a520f471f1
|
2023-08-21 23:45:19 +00:00 |
|
dan
|
da7662a4b0
|
Fix an undefined integer overflow in fts5.
FossilOrigin-Name: f5c50349b1e4da233b554f371be49297b8b40ca5fe0188899ed906f682bf70d6
|
2023-08-21 16:14:58 +00:00 |
|
drh
|
114ad2f86f
|
Address minor inaccuracies in fuzzcheck and RTREE found by UBSAN.
FossilOrigin-Name: a64e6c2fd8ef1d2d7f14aa9265629853298bbc480c2683c79dfd24847a61b68b
|
2023-08-21 14:28:47 +00:00 |
|
stephan
|
1089277105
|
JNI cleanups.
FossilOrigin-Name: 0a84131008a2e7886dac64a3545dea634811f6eac2b90885ec9c61ed1e6544c3
|
2023-08-19 14:49:08 +00:00 |
|
stephan
|
6f92f35449
|
Merge trunk into jni-threading branch.
FossilOrigin-Name: 8254479c6ff1ea3cc9e56de1698db8405c03da90b9bf4c401182e47e0842baf8
|
2023-08-19 12:34:23 +00:00 |
|
stephan
|
bfa486d5fc
|
JNI doc additions.
FossilOrigin-Name: 0c7ac34f30e1f7e35a2ac4e5e55e5f24857b24afa81a7abecba60f1c9c68b9ff
|
2023-08-19 12:32:00 +00:00 |
|
stephan
|
187da43379
|
JNI test code cleanups.
FossilOrigin-Name: e202b6e69da8cced114d027cf2e91a04dfdd50b601b3274214783f7d750c558c
|
2023-08-19 11:52:36 +00:00 |
|
stephan
|
8d9179bd07
|
Minor JNI cleanups.
FossilOrigin-Name: 1cecb9e0383aa78c491f9ba88c831a88b4b2d40ceef1b87be494b6ddc0789e41
|
2023-08-19 11:26:52 +00:00 |
|
stephan
|
3cf6c0f276
|
Add multi-thread run mode to JNI Tester1. It works but hangs on exit sometimes for Java reasons as yet not understood.
FossilOrigin-Name: bdbaf7a4534f40e550b646979e67e7b7731566bb5a2631ed376ac85a9bec40a7
|
2023-08-19 10:43:05 +00:00 |
|
stephan
|
46d677e713
|
Replace JNI::NewStringUTF() for the remaining cases where output may be incompatible with MUTF-8. It is now only used when we know the output to be plain ASCII.
FossilOrigin-Name: 2d955eef25ab116c487ebc34c6f2d2836d310af239ef1993f5aeee5a3f68d590
|
2023-08-19 08:22:34 +00:00 |
|
drh
|
4d8eb16f07
|
Rename the decimal_sci() function to decimal_exp().
[forum:/forumpost/fa027bb0ab|Forum post fa027bb0ab].
FossilOrigin-Name: c48f1be8cc505a7e2902c79e26c1d9a121ff5c55785ac812d2e09232b2414695
|
2023-08-18 15:39:38 +00:00 |
|
stephan
|
656f6c0c80
|
Improve exception handling in OpfsDb.importDb().
FossilOrigin-Name: a4eedd63b58f5c273b671f687cb68a32259963dbb053a710770383c735fb7f26
|
2023-08-18 14:41:21 +00:00 |
|
stephan
|
ccbfe97cd5
|
Extend the importDb() method of both OPFS VFSes to (A) support reading in an async streaming fashion via a callback and (B) automatically disable WAL mode in the imported db.
FossilOrigin-Name: 9b1398c96a4fd0b59e65faa8d5c98de4129f0f0357732f12cb2f5c53a08acdc2
|
2023-08-18 14:16:26 +00:00 |
|
stephan
|
383df02b16
|
Remove some obsolete JNI-internal docs.
FossilOrigin-Name: 00a2a3736a6dcde81d920815520040f3c47f965165e7128ca1f4062e6ec7c17c
|
2023-08-17 22:04:07 +00:00 |
|
dan
|
e15b35d5a6
|
Fix an error in documentation comments in fts5.h.
FossilOrigin-Name: 24d96bd65d8ccdd50a6f4fe217d196728a2f8658d128f9352c287f64e034104a
|
2023-08-17 16:59:35 +00:00 |
|
dan
|
fab6882fd6
|
Add extra test to fts5synonym2.test.
FossilOrigin-Name: 39ea11be3b35c5ecde9bc0fe66af673b8f440dc523422887d05a29feef036b01
|
2023-08-17 16:49:06 +00:00 |
|
stephan
|
6c5f96fc4d
|
Tighten up the JNI auto-ext handling.
FossilOrigin-Name: c09c8d05a20d916a9d9304eeea723ef7666a862a9e53f5feeeb1b03f9153d4b2
|
2023-08-17 13:13:22 +00:00 |
|
stephan
|
1dcb246988
|
Minor internal JNI cleanups and fixes.
FossilOrigin-Name: 0e9437de026cbfb333b90bb3400f1c015f85d49d73a25ad1000623216b88bfa0
|
2023-08-17 12:44:52 +00:00 |
|