Age | Commit message (Collapse) | Author |
|
- really detect bigendian machines by including config.h,
so we can really (Closes: #612986)
* apt-pkg/contrib/mmap.cc:
- Base has as 'valid' failure states 0 and -1 so add a simple
validData method to check for failure states
|
|
- do not try to free the mapping if its is unset
|
|
- add and document APT::Cache-{Start,Grow,Limit} options for mmap control
|
|
- make the used MMap moveable (and therefore dynamic resizeable) by
applying (some) mad pointer magic (Closes: #195018)
|
|
never segfault it still tend to do it so better show it directly
|
|
- clarify "MMap reached size limit" error message, thanks Ivan Masár!
|
|
- add char[] fallback for filesystems without shared writable
mmap() like JFFS2. Thanks to Marius Vollmer for writing
and to Loïc Minier for pointing to the patch! (Closes: #314334)
|
|
(but planed) growable mmaps
|
|
- Fix FTBFS on GNU/kFreeBSD by disabling DynamicMMap::Grow() on
non-Linux architectures (as it uses mremap).
|
|
Remove a bug (= an evil amok running if) introduced by the merge in 1817
which cause a segfault in the destructor for the dynamic mmap.
|
|
|
|
* add mmap error message also to the dynamic mmap
* remove some more {Ver,Desc} == 0 checks in for loops
* try to respect the given flags to the dynamic mmap
* open cached caches not as ReadOnly and not as Shared, so we
always have a copy of the cache in the memory we can modify
(e.g. set the hold state on-the-fly)
|
|
* add hook for MarkInstall and MarkDelete (closes: #470035)
* add the various foldmarkers in apt-pkg & cmdline (no code change)
* versions with a pin of -1 shouldn't be a candidate (Closes: #355237)
* prefer mmap as memory allocator in MMap instead of a static char
array which can (at least in theory) grow dynamic
* eliminate (hopefully all) segfaults in pkgcachegen.cc and mmap.cc
which can arise if cache doesn't fit into the mmap (Closes: #535218)
* display warnings instead of errors if the parts dirs doesn't exist
* honor the dpkg hold state in new Marker hooks (closes: #64141)
|
|
which can arise if cache doesn't fit into the mmap (Closes: #535218)
This removes also the previously introduced SegfaultSignalHandler:
The handler works, but is ugly by design...
|
|
can be deactivated with MMap::SegfaultHandler=false (Closes: 535218)
|
|
based on Michael Vogts patch in #195018 this commit implements the use
of mmap (as preferred) instead of a static char array. In theory this
made it possible to grow the mmap as needed, but as it is currently
impossible to move the mmap around in the memory the grow is likely
to fail but it improve the memory usage a bit, so it is not totally
useless for now - and maybe we can adjust the pointers in the future...
|
|
|
|
|
|
- fix crash in diff acquire code
* apt-pkg/contrib/mmap.cc:
- don't fail if msync() returns > 0
|
|
|
|
|
|
|
|
Author: jgg
Date: 2001-05-27 05:19:30 GMT
Ensure the memory buffer is 0'd
|
|
Author: jgg
Date: 2001-02-20 07:03:16 GMT
Join with aliencode
|
|
Author: jgg
Date: 1999-10-02 04:14:53 GMT
More or group patches
|
|
Author: jgg
Date: 1999-08-30 04:20:26 GMT
Fixed msync thingy
|
|
Author: jgg
Date: 1999-08-28 01:49:07 GMT
Fixed sign conversion
|
|
Author: jgg
Date: 1999-08-02 03:07:47 GMT
A few functions migrated around
|
|
Author: jgg
Date: 1999-07-18 05:58:40 GMT
Small range check bug
|
|
Author: jgg
Date: 1999-04-18 06:36:36 GMT
Support for memory-only caching
|
|
Author: jgg
Date: 1999-03-18 04:32:45 GMT
Fixes for mmap and yodl
|
|
Author: doogie
Date: 1999-03-18 04:10:21 GMT
Backed out previous apt-pkg/contrib/mmap.cc fix/kludge/change.
|
|
Author: doogie
Date: 1999-03-18 03:20:24 GMT
modified apt-pkg/contrib/mmap.cc to not use the define PAGE_SIZE by removing
'#include <sys/user.h>' and adding 'static int PAGE_SIZE = getpagesize();'
to msync();
|
|
Author: jgg
Date: 1999-02-05 02:26:13 GMT
Fix for hurd
|
|
Author: jgg
Date: 1998-11-23 07:02:58 GMT
Needs Unpack fixes
|
|
Author: jgg
Date: 1998-11-12 03:14:39 GMT
Widened the mmap size
|
|
Author: jgg
Date: 1998-07-26 04:49:26 GMT
Progress and combined cache generator
|
|
Author: jgg
Date: 1998-07-19 04:42:10 GMT
Class File name change to FileFd
|
|
Author: jgg
Date: 1998-07-15 05:56:42 GMT
Compile of apt-cache
|
|
Author: jgg
Date: 1998-07-12 23:58:20 GMT
First draft of make system and name change to apt-pkg
|
|
Author: jgg
Date: 1998-07-07 04:17:00 GMT
Sync
|
|
Author: jgg
Date: 1998-07-04 22:32:11 GMT
Checkpoint
|
|
Author: jgg
Date: 1998-07-04 05:57:34 GMT
Checkpoint
|
|
Author: jgg
Date: 1998-07-02 02:58:12 GMT
Base revisions
|