summaryrefslogtreecommitdiff
path: root/src/RequestGroup.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-11-26 02:59:51 +0100
committerNils Maier <maierman@web.de>2013-12-09 15:41:43 +0100
commit2db0c81fc8067d73230fcbffc90bd7ad1f9c07b0 (patch)
treea6c37eaa4de5ef4c8b4e982cb7d87c1f6ac5bf3b /src/RequestGroup.cc
parent1323048ab1a254510e32d47f5549f4e30d273e5a (diff)
Stuff memory holes
Padding changes on x86_64: - RequestGroup: 29 -> 5 bytes - DownloadContext: 25 -> 1 bytes - Cookie: 20 -> 4 bytes - Command: 8 -> 0 bytes (affects many derived as well) - HttpRequest: 20 -> 4 bytes - DownloadCommand: 18 -> 2 bytes - TimeBasedCommand: 14 -> 6 bytes - AbstractCommand: 13 -> 5 bytes - HttpSkipResponseCommand: 12 -> 4 bytes - FileEntry: 10 -> 2 bytes - DownloadResult: 15 -> 7 bytes - UriStruct: 12 -> 4 bytes - Piece: 11 -> 3 bytes - BitfieldMan -> 11 -> 3 bytes
Diffstat (limited to 'src/RequestGroup.cc')
-rw-r--r--src/RequestGroup.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc
index 55ea2783..7550d9af 100644
--- a/src/RequestGroup.cc
+++ b/src/RequestGroup.cc
@@ -123,35 +123,35 @@ namespace aria2 {
RequestGroup::RequestGroup(const std::shared_ptr<GroupId>& gid,
const std::shared_ptr<Option>& option)
- : gid_(gid),
- state_(STATE_WAITING),
+ : belongsToGID_(0),
+ gid_(gid),
option_(option),
- numConcurrentCommand_(option->getAsInt(PREF_SPLIT)),
- numStreamConnection_(0),
- numStreamCommand_(0),
- numCommand_(0),
- saveControlFile_(true),
progressInfoFile_(new NullProgressInfoFile()),
- preLocalFileCheckEnabled_(true),
- haltRequested_(false),
- forceHaltRequested_(false),
- haltReason_(RequestGroup::NONE),
- pauseRequested_(false),
uriSelector_(make_unique<InorderURISelector>()),
- lastModifiedTime_(Time::null()),
- fileNotFoundCount_(0),
- timeout_(option->getAsInt(PREF_TIMEOUT)),
+ requestGroupMan_(nullptr),
#ifdef ENABLE_BITTORRENT
btRuntime_(nullptr),
peerStorage_(nullptr),
#endif // ENABLE_BITTORRENT
- inMemoryDownload_(false),
+ lastModifiedTime_(Time::null()),
+ timeout_(option->getAsInt(PREF_TIMEOUT)),
+ state_(STATE_WAITING),
+ numConcurrentCommand_(option->getAsInt(PREF_SPLIT)),
+ numStreamConnection_(0),
+ numStreamCommand_(0),
+ numCommand_(0),
+ fileNotFoundCount_(0),
maxDownloadSpeedLimit_(option->getAsInt(PREF_MAX_DOWNLOAD_LIMIT)),
maxUploadSpeedLimit_(option->getAsInt(PREF_MAX_UPLOAD_LIMIT)),
+ resumeFailureCount_(0),
+ haltReason_(RequestGroup::NONE),
lastErrorCode_(error_code::UNDEFINED),
- belongsToGID_(0),
- requestGroupMan_(nullptr),
- resumeFailureCount_(0)
+ saveControlFile_(true),
+ preLocalFileCheckEnabled_(true),
+ haltRequested_(false),
+ forceHaltRequested_(false),
+ pauseRequested_(false),
+ inMemoryDownload_(false)
{
fileAllocationEnabled_ = option_->get(PREF_FILE_ALLOCATION) != V_NONE;
if(!option_->getAsBool(PREF_DRY_RUN)) {