8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 03:23:03 +01:00
Commit Graph

341 Commits

Author SHA1 Message Date
hvlad
4591207542 Correct on-stack constructor for SparseBitmap (discussed with Nickolay) 2004-10-05 07:03:26 +00:00
robocop
ed17cfafbf Style:
if<space>(
for<space>(
switch<space>(
while<space>(
2004-10-04 08:15:00 +00:00
robocop
bdf5dea379 Close vulnerability #3 in gds__interprete's new version.
Traditional sprintf could write past the end of buffer.
2004-10-04 04:44:52 +00:00
robocop
f67540a4a5 Member functions that don't change anything are marked const. 2004-10-02 09:33:06 +00:00
robocop
90dab6af2e Prevent buffer overrun (equivalent to evl.cpp's concatenate). 2004-10-02 09:31:12 +00:00
hvlad
d281601365 Make new class SparseBitmap compile by MSVC6 2004-10-01 06:27:57 +00:00
arnobrinkman
d9c6c3ebab fix bug with singular bitmaps, in consideration with Nickolay 2004-09-29 21:58:58 +00:00
skidder
85297ac45a Fix MSVC7 builds 2004-09-28 21:50:10 +00:00
skidder
02a0915156 Teach engine to work with larger record numbers - 64-bit internally, 40-bit externally 2004-09-28 06:28:38 +00:00
robocop
d61df6f212 Introducing our snprintf to avoid writing
SNPRINTF(...);
buffer[sizeof(buffer) - 1] = 0;
Makes a provision to detect overruns in systems that lack the snprintf familty.
Comments welcome
2004-09-26 11:17:39 +00:00
robocop
821a83eaba Take advantage of the full range in name_length(), in case we need it.
In most platforms, int <==> ptrdiff_t
2004-09-26 07:38:34 +00:00
robocop
840bf14b36 If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes). 2004-09-26 01:49:52 +00:00
robocop
4eefd6d63e Totally misc 2004-09-24 06:40:13 +00:00
alexpeshkoff
07cc528371 Fixed a number of errors in Firebird::string 2004-09-23 07:03:14 +00:00
robocop
c3660458b4 Added a comment, in case it's not obvious 2004-09-20 08:37:11 +00:00
robocop
5dce94f59f Collapsed an example of Borland's advanced copy/paste technique that repeats routines in different files into a single function. 2004-09-15 03:49:52 +00:00
robocop
9a34d7bb91 Misc: fix typo in a comment 2004-09-07 08:35:29 +00:00
alexpeshkoff
079c3f0602 Added firebird.conf parameter UsePriorityScheduler (requested by Nickolay) 2004-09-02 09:00:48 +00:00
alexpeshkoff
a808403767 Partially removed DeadThreadsCollection parameter from firebird.conf.
Concerning complete removal of it I wait for response on my letter to devel list.
2004-09-01 16:11:12 +00:00
skidder
a28561fcf5 Look up Valgrind header in more appropriate place 2004-09-01 09:36:44 +00:00
alexpeshkoff
c3db4aaa97 added (and used in sources) template to change and restore default pool 2004-08-30 18:11:08 +00:00
skidder
7a85d40428 Fix typo and small bug in memory manager test code 2004-08-28 23:14:46 +00:00
skidder
674e533b80 Update memory manager tests 2004-08-28 05:19:23 +00:00
skidder
6c9402b881 fix handling of zero-length allocations, fix rare memory management error, add quick pool verification logic 2004-08-28 05:18:42 +00:00
skidder
b8601cce19 quick pool verification logic 2004-08-28 05:15:02 +00:00
skidder
f13f54c966 Some Linux targets may miss support for fancy rwlock options 2004-08-28 02:51:11 +00:00
robocop
3a45a04ea7 MSVC6 doesn't keep variables in a for() only in that scope. This standard construction is rejected:
for (int i = ...);
for (int i = ...);
Put the variable again before the loops to be able to compile.
2004-08-27 04:46:01 +00:00
brodsom
46aa03e06e Fix signed/unsigned comparisons 2004-08-26 18:28:12 +00:00
robocop
305b9088f4 misc 2004-08-26 11:04:14 +00:00
skidder
035ac89d7c Clarify comment and update assertion check 2004-08-25 03:09:57 +00:00
brodsom
57528f8bc2 Avoid variable shadowing 2004-08-24 23:11:02 +00:00
robocop
24aab1bd43 Renamed ptr_block to ptrToBLock and block_ptr to blockToPtr for better self-documenting code as agreed privately. No functional change. 2004-08-24 05:16:01 +00:00
skidder
933488964a Update memory manager tests 2004-08-22 21:31:19 +00:00
skidder
a1371e4ffa Slightly streamline logic of allocation critical path. Correct 2 memory manager bugs added during last optimization attempt. We are now ~40faster than malloc from GLIBC 2.3 2004-08-22 21:28:19 +00:00
skidder
3b3bd79ddb Use fine-tuned tree page sizes by default. This increases tree performance by ~7 We are now 1.5 times faster than GNU STL tree 2004-08-22 21:09:13 +00:00
robocop
6be277355f Misc: formatting 2004-08-21 09:18:24 +00:00
skidder
706e941871 Old Valgrind stacktraces need to be cleaned up on pool destruction 2004-08-18 23:39:43 +00:00
alexpeshkoff
45e2d3556f removed a lot of posix warnings after changing int to size_t in vector.h 2004-08-16 12:25:39 +00:00
alexpeshkoff
4568a1c968 replaced exit() with throw fatal_exception - thanks to Jim 2004-08-16 12:24:30 +00:00
skidder
158cc8b30b Optimize memory manager a little bit 2004-08-10 04:10:47 +00:00
skidder
0374e1a9fd Fix memory manager to allow reliable detection of references to memory from deleted pools under Valgrind. Make memory usage statistics more accurate both in Valgrind and general cases. Adjust pool dumping routine to be aware of delayed free blocks 2004-08-09 01:24:54 +00:00
skidder
b980507ad2 Valgrind support 2004-07-30 22:38:08 +00:00
skidder
6129db2caa Correct a couple errors I introduced during int->size_t transition for array indexing 2004-07-29 17:44:03 +00:00
robocop
a5ceabacc8 Style and simplification 2004-07-22 07:17:58 +00:00
skidder
04076ea1ff size_t is more correct type for container sizes and indices 2004-07-17 00:13:34 +00:00
skidder
5494b34caa size_t is more correct type for container sizes and indices 2004-07-16 23:06:31 +00:00
skidder
d749b61c21 Let our dynamic libraries work 2004-07-14 21:49:03 +00:00
robocop
22d2a488d1 Preach with the example and change the license to the IDPL 2004-07-10 03:17:02 +00:00
skidder
32baa87086 Change license for source files which I wrote 2004-06-30 01:26:40 +00:00
skidder
3b062b90b6 Little string class cleanups 2004-06-29 23:31:12 +00:00