Title: OpenCLProbeLibrary.isValid() can fail if called before static block in JavaCL is executed · Issue #40 · nativelibs4java/JavaCL · GitHub
Open Graph Title: OpenCLProbeLibrary.isValid() can fail if called before static block in JavaCL is executed · Issue #40 · nativelibs4java/JavaCL
X Title: OpenCLProbeLibrary.isValid() can fail if called before static block in JavaCL is executed · Issue #40 · nativelibs4java/JavaCL
Description: Between version 1.0.0-RC2 and 1.0.0-RC4 the following lines were moved from the static block in OpenCLProbeLibrary to the static block in JavaCL: BridJ.setNativeLibraryActualName("OpenCLProbe", "OpenCL"); BridJ.register(); In RC4 it's po...
Open Graph Description: Between version 1.0.0-RC2 and 1.0.0-RC4 the following lines were moved from the static block in OpenCLProbeLibrary to the static block in JavaCL: BridJ.setNativeLibraryActualName("OpenCLProbe", "Op...
X Description: Between version 1.0.0-RC2 and 1.0.0-RC4 the following lines were moved from the static block in OpenCLProbeLibrary to the static block in JavaCL: BridJ.setNativeLibraryActualName("OpenCLProbe&...
Opengraph URL: https://github.com/nativelibs4java/JavaCL/issues/40
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenCLProbeLibrary.isValid() can fail if called before static block in JavaCL is executed","articleBody":"Between version 1.0.0-RC2 and 1.0.0-RC4 the following lines were moved from the static block in `OpenCLProbeLibrary` to the static block in `JavaCL`:\r\n```\r\nBridJ.setNativeLibraryActualName(\"OpenCLProbe\", \"OpenCL\");\r\nBridJ.register();\r\n```\r\n\r\nIn RC4 it's possible to call `OpenCLProbeLibrary.isValid()` before the static block is executed in `JavaCL`, meaning the call to `isValid()` will fail. Nothing in `isValid()` guarantees the initialization of `JavaCL`.\r\n\r\nCan be reproduced by:\r\n```\r\npublic class IsValidTest {\r\n\tpublic static void main(String[] args) {\r\n\t\tOpenCLProbeLibrary.isValid(); // Returns false\r\n\t}\r\n}\r\n```\r\n```\r\npublic class IsValidTest {\r\n\tpublic static void main(String[] args) {\r\n\t\tnew JavaCL(); // Force the static initialization of JavaCL\r\n\t\tOpenCLProbeLibrary.isValid(); // Returns true\r\n\t}\r\n}\r\n```","author":{"url":"https://github.com/jxb532","@type":"Person","name":"jxb532"},"datePublished":"2019-04-12T14:17:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/40/JavaCL/issues/40"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ccef92a-f50c-f8bd-6c6b-4b620b087706 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB40:2016D0:C0E6D:10F0A3:69789124 |
| html-safe-nonce | 4529b620899e5c808c05b8c8bb37d3283bc72caade9324c616cee5fb187554a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjQwOjIwMTZEMDpDMEU2RDoxMEYwQTM6Njk3ODkxMjQiLCJ2aXNpdG9yX2lkIjoiODU4MDYyOTQ0NDA0MzUxMDA1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d5c1f32ecf1630264823ef968d71cfd7624e1244201d9d7661da30f28d15544b |
| hovercard-subject-tag | issue:432589140 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nativelibs4java/JavaCL/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f9598837fd0435f5d7bcfd1c7ae983b348826d375f7ba518f73d1bdb66dfd816/nativelibs4java/JavaCL/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f9598837fd0435f5d7bcfd1c7ae983b348826d375f7ba518f73d1bdb66dfd816/nativelibs4java/JavaCL/issues/40 |
| og:image:alt | Between version 1.0.0-RC2 and 1.0.0-RC4 the following lines were moved from the static block in OpenCLProbeLibrary to the static block in JavaCL: BridJ.setNativeLibraryActualName("OpenCLProbe", "Op... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jxb532 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/nativelibs4java/JavaCL git https://github.com/nativelibs4java/JavaCL.git |
| octolytics-dimension-user_id | 11545921 |
| octolytics-dimension-user_login | nativelibs4java |
| octolytics-dimension-repository_id | 31854274 |
| octolytics-dimension-repository_nwo | nativelibs4java/JavaCL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31854274 |
| octolytics-dimension-repository_network_root_nwo | nativelibs4java/JavaCL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a49c4df0dedcf1a70c07cccb99337400ec284247 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width