Comments (3)
Very good code to reproduce the problem.
Thanks!
I will look into it.
from mormot2.
It sounded like a nasty stack alignment issue...
Should be fixed now.
At least, it is stable with my testing on Win64 in both Delphi and FPC.
IMPORTANT DISCLAIMER:
TRWLock is designed for VERY small portions of code, and should never write-lock more than for a few instructions.
Using it with second-like write locks is pretty unsafe and would burn a lot of CPU for no benefit.
from mormot2.
It sounded like a nasty stack alignment issue...
Should be fixed now. At least, it is stable with my testing on Win64 in both Delphi and FPC.
IMPORTANT DISCLAIMER: TRWLock is designed for VERY small portions of code, and should never write-lock more than for a few instructions. Using it with second-like write locks is pretty unsafe and would burn a lot of CPU for no benefit.
This commit fixed TRWLock.ReadOnlyLock on Win64 fixes the problem
Thanks for the info; I already know that from your blog and comments on the code, but I was doing some testing to better understand the locks in mORMot2.
Again, thanks for your work, and have a nice day.
from mormot2.
Related Issues (20)
- TSimpleClient can't get the correct response HOT 19
- TSynSystemTime returns wrong local time HOT 6
- Suggest: TSynLog.ComputFileName add localtime option HOT 1
- WebSocket Client Is not disconnecting HOT 9
- Variant and TSynDictionary HOT 1
- CrossCompile failed HOT 7
- test.soa.core.pas(1789): E2003 Undeclared identifier: 'DefaultRotate' HOT 13
- Feature request: Create embedded file for PDF HOT 3
- PDF/A validation failed (no OutputIntent for RGB) HOT 3
- DynArrayLoadJson does not work like Delphi in FPC HOT 2
- How to add custom XMP metadata HOT 2
- Enhancement request: Display OutputIntent on Acrobat Reader "Standards" tab
- The correct method of TProcessInfo.PerSystem in Linux HOT 1
- SQLite Extension HOT 1
- TSqlDBIbx - reading memo as string does not give the contents HOT 2
- Circular unit reference to 'variants' error. in delphi 12.1 HOT 2
- JSON Array Bug HOT 2
- Is there any future plan to support HTTP Server side File Upload? HOT 6
- OpenAPI Multiline description comment bug HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mormot2.